﻿using HalconDotNet;
using Prism.Commands;
using wpf.template.match.Services;

namespace wpf.template.match.ViewModels
{
    public class ShapeViewModel
    {
        public ITemplateMatchService MatchService { get; }
        public ShapeViewModel(ITemplateMatchService matchService)
        {
            MatchService = matchService;
        }

        public DelegateCommand RunCommand => new DelegateCommand(Run);

        private void Run()
        {
            MatchService.Run(new HObject());
        }
    }
}
